package com.luckyframe.project.jmeter.jmeterAlertConfig.domain;

import static com.luckyframe.project.jmeter.jmeterAlertConfig.domain.AlertOperator.GRATER_THAN;
import static com.luckyframe.project.jmeter.jmeterAlertConfig.domain.AlertOperator.LESS_THAN;

public enum AlertType {

    TPS("tps","tps",LESS_THAN),

    AVG_RESPONSE_TIME("avg_response_time","响应时间",GRATER_THAN ),

    SUCCESS_RATIO("success_ratio","成功率", LESS_THAN),

    LINE95_TIME("line95","用户满意度", GRATER_THAN);


    private String key;

    private String desc;

    private AlertOperator operator;

    AlertType(String key, String desc, AlertOperator operator) {
        this.key = key;
        this.desc = desc;
        this.operator = operator;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public AlertOperator getOperator() {
        return operator;
    }

    public void setOperator(AlertOperator operator) {
        this.operator = operator;
    }
}
